<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title><s:property value='%{getText("w_title")}' /></title>
	<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
	<%@ include file="../commonPage/message.jsp"%>
</head>
<body>
<h2><s:property value='%{getText("current_position")}' />${parentMenu}>>${currentMenu}</h2>
<div class="main">
<s:form action="worktimeAction!findAll.action" method="post" theme="simple">
  <p class="pEdit">
  	<%=request.getAttribute("button") %>
	</p>
  
  <table border="0" cellpadding="1" cellspacing="1" class="tableList">
  <thead>	
      <tr>
        <th width="25"><input type="checkbox" name="checkbox" value="checkbox" onclick="Super.checkAll(this.checked)" title="全选/取消"/></th>
        <th width="30" class="number"><s:property value='%{getText("w_xuhao")}' /></th>
        <th width="25%"><s:property value='%{getText("w_name")}' /></th>
        <th width="30%"><s:property value='%{getText("w_type")}' /></th>
        <th width="32%"><s:property value='%{getText("w_fen")}' /></th>
      </tr>
      </thead>
      
      <tbody>
        <s:iterator id="pageBean" value="entity.list" status="u">
		  <tr>
 			<td><input type="checkbox" name="checkbox" value="${pageBean.id}" /></td>
			<td width="30" class="number">${entity.index+u.index}</td>
			<td>${pageBean.name}</td>			
        	<td>${pageBean.type}</td>
        	<td>${pageBean.hourLen}</td>
		  </tr>
	    </s:iterator>
	    <tr>
		  <td colspan="5" class="turnPage">
			<jsp:include flush="true" page="../commonPage/page.jsp">
				<jsp:param name="entity" value="entity" />
			</jsp:include>
		  </td>
	    </tr>
	  </tbody>
    </table>
</s:form>
</div>
</body>
</html>
